//
//  NewThreeTableViewCell.m
//  XWZ_News_Work
//
//  Created by dllo on 16/1/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NewThreeTableViewCell.h"

@implementation NewThreeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubview];
    }
    return self;
}

- (void)createSubview
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.labelTitle = [[UILabel alloc] initWithFrame:CGRectMake(5, 5 * WIDTH, 365 * WIDTH, 15 * HEIGHT)];
    self.labelTitle.font = [UIFont systemFontOfSize:16.0 * HEIGHT];
    self.labelTitle.text = @"网易新闻新闻新闻新闻新闻新闻新闻";
    [self.contentView addSubview:self.labelTitle];
    
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake(5, 25 * HEIGHT, 365 * WIDTH, 165 * HEIGHT)];
    self.image.image = [UIImage imageNamed:@"lol-tupian"];
    [self.contentView addSubview:self.image];

    self.labelSubject = [[UILabel alloc]initWithFrame:CGRectMake(10, 190 * HEIGHT, 365 * WIDTH, 50)];
    self.labelSubject.text = @"网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻网易新闻";
    self.labelSubject.textColor = [UIColor grayColor];
    self.labelSubject.numberOfLines = 2;
    self.labelSubject.font = [UIFont systemFontOfSize:14.0];
    [self.contentView addSubview:self.labelSubject];
    
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
